package com.atqinke.designpattern.structuraltype.adapter.classadapter;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.DesignPattern.structuraltype.adapter.classadapter
 * @Author: NieHk
 * @CreateTime: 2022-08-26  16:23
 * @Description: 类适配器测试
 * @Version: 1.0
 */
public class test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        System.out.println(computer.readSD(sdCard));

        System.out.println("------------");

        SDAdapterTF adapter = new SDAdapterTF();
        System.out.println(computer.readSD(adapter));
    }
}
